
package com.idealighter.game.games.foursshop.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.games.foursshop.message.ResClearBetMsg;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


@ResMsgHandler(504228)
public class ResClearBetHandler implements ResMessageHandler {

  private static final Logger LOG = LoggerFactory.getLogger(ResClearBetHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    ResClearBetMsg msg = (ResClearBetMsg) message;
    if (msg.getResult() == 0) {
      LOG.info("[4s]玩家[{}][{}]清空筹码成功", player.playerId, player.playerInfo.getNickName());
    }
  }
}
